package cn.highedu.spring.config;

import cn.highedu.spring.bean.*;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class Application3Config {

    @Bean
    public RewardNetwork rewardNetwork() {
        return new RewardNetworkImpl(accountRepository());
    }
    @Bean
    public AccountRepository accountRepository() {
        return new JdbcAccountRepository();
    }

}
